package com.ysbt.usercenter.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ysbt.usercenter.model.domain.User;
import jakarta.servlet.http.HttpServletRequest;

/**
 * 用户服务
* @author YRX
* @description 针对表【user】的数据库操作Service
* @createDate 2024-08-27 23:37:38
*/
public interface UserService extends IService<User> {
    /**
     * y用户注册
     * @param userAccount 用户账号
     * @param userPassword 用户密码
     * @param checkPassword 用户校验密码
     * @return
     */
    long userRegister(String userAccount,String userPassword,String checkPassword);
    User userLogin(String userAccount, String userPassword, HttpServletRequest request);

    /**
     * 用户脱敏
     * @param originUser 脱敏前的用户
     * @return
     */
    User getSafetyUser(User originUser);

    /**
     * 用户注销
     *
     * @param request 前端请求参数
     * @return
     */
    Integer userLoginout(HttpServletRequest request);
}
